﻿var YouDao = (function (_super) {
    __extends(YouDao, _super);
    function YouDao() {
        return _super !== null && _super.apply(this, arguments) || this;
    }

    YouDao.prototype.execute = function () {
        // Get settings
        var commandSettings = this.CommandParam;
        var normalProperty = commandSettings.NormalProperty;
        var formulaProperty = commandSettings.FormulaProperty;
        var formulaValue = this.evaluateFormula(formulaProperty);

        // Add command logic here
        alert("execute command: " + normalProperty + " " + formulaValue);
    };

    return YouDao;
}(Forguncy.CommandBase));

// Key format is "Namespace.ClassName, AssemblyName"
Forguncy.CommandFactory.registerCommand("YouDao.YouDao, YouDao", YouDao);